package com.elsa.smart_buffet.service.impl;

import com.elsa.smart_buffet.mapper.TradeEchartsMapper;
import com.elsa.smart_buffet.pojo.ResultBox.CallBackMessage;
import com.elsa.smart_buffet.pojo.ResultBox.ResponseResult;
import com.elsa.smart_buffet.service.TradeEchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName : TradeEchartsServiceImpl  //类名
 * @Author : elsa //作者
 */
@Service
@Transactional
public class TradeEchartsServiceImpl implements TradeEchartsService {

    @Autowired
    private TradeEchartsMapper tradeEchartsMapper;

    @Override
    public ResponseResult getTradeEchartsByPriceAndDate(String LowPrice, String HighPrice, String date) {
        return new ResponseResult(CallBackMessage.SUCCESS, tradeEchartsMapper.getTradeEchartsByPriceAndDate(LowPrice, HighPrice, date));
    }

}
